package com.ww.springboot.mybatis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ww.springboot.mybatis.data.entity.OnlineChannelServiceBindStoreEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Mapper 接口
 *
 * @author Chill
 */
@Mapper
public interface OnlineChannelServiceBindStoreMapper extends BaseMapper<OnlineChannelServiceBindStoreEntity> {
    /**
     * 自定义批量插入
     *
     * @param list 批量插入
     * @return 插入的条数
     */
    int insertBatch(List<OnlineChannelServiceBindStoreEntity> list);

    /**
     * 根据id的集合批量删除
     *
     * @param ocsbIds 服务绑定id
     * @return 条数
     */
    void deleteBatchByOcsbIds(@Param("ocsbIds") List<Long> ocsbIds);
}
